package view.guitare;

import javax.swing.GroupLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class InformationPanel extends JPanel {

	private JLabel noteLabel;
	private JLabel noteValue;
	
	private GroupLayout groupLayout;
	
	public InformationPanel() {
		super();
		initComponents();
	}


	private void initComponents() {
		this.noteLabel = new JLabel("Note : ");
		this.noteValue = new JLabel();
		
		this.groupLayout = new GroupLayout(this);
		this.setLayout(this.groupLayout);
		
		groupLayout.setAutoCreateContainerGaps(true);
		groupLayout.setAutoCreateGaps(true);
		
		groupLayout.setHorizontalGroup(groupLayout.createSequentialGroup()
				.addComponent(this.noteLabel)
				.addComponent(this.noteValue)
				);
		
		groupLayout.setVerticalGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addComponent(this.noteLabel)
				.addComponent(this.noteValue)
				);
	}
	
	public void setNoteLabel(String note) {
		this.noteValue.setText(note);
	}


	public void eraseNoteLabel() {
		this.noteValue.setText("");
	}
}

